package com.zsxj.xixi.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Description
 * @Author mengweibin
 * @Date 2021-07-06 23:37
 */
@RestController
@RefreshScope
@RequestMapping("/test")
@Api(tags = {"hello控制器"})
public class HelloController {


    @ApiOperation(
            value = "hello方法简要说明",
            notes = "告诉你这个方法是干嘛的",
            response = String.class
    )
    @GetMapping("/test/hello")
    public String testHello() {
        return "hahahha";
    }


}

